package com.xiaokai.config;

import com.netflix.hystrix.contrib.javanica.aop.aspectj.HystrixCommandAspect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Author:yang
 * Date:2024-11-04 15:54
 */
@Configuration
public class HystrixConfig {


    /**
     * 注入HystrixCommandAspect
     * @return
     */
    @Bean
    public HystrixCommandAspect hystrixCommandAspect() {
        return new HystrixCommandAspect();
    }
}
